//
//  HOTHttpClient.h
//  Genpara
//
//  Created by AndyChang.zhang on 14-9-19.
//  Copyright (c) 2014年 zhangchh. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HOTHttpClient : NSObject

+(instancetype)client;
-(void)requestWithURL:(NSString *)urlString
           Parameters:(id)parameters
              success:(void (^)(id responseObject))success
              failure:(void (^)(NSError *error))failure;

-(void)requestGETWithURL:(NSString *)urlString
              Parameters:(id)parameters
                 success:(void (^)(id))success
                 failure:(void (^)(NSError *))failure;

-(void)uploadDataWithURL:(NSString *)urlString
              uploadData:(NSData *)uploadData
              uploadName:(NSString *)uploadName
                fileName:(NSString *)fileName
              Parameters:(id)parameters
                mimeType:(NSString *)mimeType
                 success:(void (^)(id))success
                 failure:(void (^)(NSError *))failure;
@end
